import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import {join} from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      // eslint-disable-next-line no-undef
      '@': join(__dirname, 'src'),
    },
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: "@import './src/assets/style/index.scss';", // 全局公共样式
      },
    },
  },
})
